home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Megahits 6
/
Megahits 6 (1995)(GTI - Rhein-Main-Soft)(DE)(Disc 2 of 2)[!].iso
/
time_ungepackt
/
time_361_390
/
time_387
/
megafish
/
tools
/
mf-rexxscripts
/
aminet.mfish
< prev
next >
Wrap
Text File
|
1995-07-15
|
6KB
|
188 lines
/*$VER: AmiNet.mfish V0.01 (Beta)
AmiNet.mfish
Geschrieben von Stephan Bülling
(c) 1993 - 1995 by Mega/Soft Limited
Alle RECHTE vor behalten.
Das Programm ist PMWare (BriefWare)
EMail : rubberduck@blanker.ruhr.de
rubberduck@sid.anubis.sub.de
MailBox : +49-(0)231-815739
+49-(0)231-448496
*/
/*--------------------------- Config --------------------------------------*/
lw="CD0:" /* CD-ROM Laufwerk z.B CD0: */
Tmp="T:" /* Tempfad */
/*------------------------- Enpacken --------------------------------------*/
exlha="lha -x -m -Qd x" /* .Lha, Lzh */
exdms="DMS WRITE" /* .DMS */
/*------------------------- Anzeigen --------------------------------------*/
zlha="lha vq" /* .LHA, LZH */
zdms="DMS VIEW" /* .DMS */
anzjpg="Fastview" /* .Jpg */
anzgif="ZGIF" /* .Gif */
anzgui="AmigaGuide" /* .GUIDE */
anzeiger="MuchMore" /* Default */
/*-------------------------------------------------------------------------*/
ver="AmiNet.mfish V0.01 (Beta)"
if show('library','rexxreqtools.library') = 0 then do
call addlib("rexxreqtools.library", 0, -30, 0)
end
OPTIONS RESULTS;cr=d2c(13)||d2c(10);
SIGNAL ON Break_C;'WaitForPort MFISH';ADDRESS 'MFISH'
NL = '0a'x;OPTIONS FAILAT 9999
if ~Show(P,'MFISH') then do
Say cr||cr||""ver" (W) 1995 Stephan Bülling"||cr
Say "MegaFish muß zuerst gestartet werden!"||cr
options PROMPT "Ende mit <RETURN>"
pull it
exit
end
CALL MFISH
rtezrequest(center(" Benötige die CD",50)||NL||,
center(" Aminet Nr. "dd"",50)||NL||,
center("in Laufwerk "lw"",50),"_Weiter|_Abruch",""ver"")
if rtresult == 0 then exit;if rtresult == 1 then
IF EXISTS(""tmp"afile") then call start
else
rtezrequest(center("Über "VER"",50)||NL||,
center(" Geschrieben von Stephan Bülling ",50)||NL||,
center(" (c) 1993-1995 by Mega/Soft Limited",50)||NL||,
center(" Alle RECHTE vorbehalten",50)||NL||,
center("",50)||NL||,
center(" Dieses Programm ist PM-Ware (Brief-Ware)",50)||NL||,
center(" EMail: rubberduck@blanker.ruhr.de",50)||NL||,
CENTER(" ",70),"_Yep",""VER"");start:
call diraminet
weiter:
CALL rtezrequest(center("Programm : "nam"",40)|| NL ||center("Was soll ich da mit machen ",40),"Ent_packen|_Kopieren|_Zeigen|_Abbruch",""ver" (w) Stephan Bülling");
if rtresult == 0 then exit;if rtresult == 1 then CALL unpack
if rtresult == 2 then CALL Pack;
if rtresult == 3 then CALL anzeigen
close(file);ADDRESS COMMAND 'DELETE >NIL: 'tmp'afile QUIT'
pack:
call Directory
ADDRESS COMMAND 'copy 'LW||project'/'ix'/'nam' 'dirname''
EXIT
unpack:
check = upper(right(nam, 3))
select
when check = 'LZH' | check = 'LHA' then call lha
when check = 'DMS' then call dms
otherwise
rtezrequest(center(""nam" ist kein bekanntes",40)||NL||,
center("Archivformat. Der Filename",40)||NL||,
center("muss mitt Lzh, Lha oder DMS enden",40)||NL||,
center("",40),"_oK",""ver"");
ADDRESS COMMAND ''anzeiger' 'LW||project'/'ix'/'nam''
exit
anzeigen:
check = upper(right(nam, 3))
select
when check = 'LZH' | check = 'LHA' then call anzlha
when check = 'DMS' then call anzdms
when check = 'JPG' then call anzjpg
when check = 'GIF' then call anzgif
when check = 'guide' then call anzgui
otherwise
rtezrequest(center(""nam"",40)||NL||,
center("ist kein bekanntes Archivformat",40)||NL||,
center("",40),"_oK",""ver"");exit
DMS:
CALL Laufwerk
ADDRESS COMMAND ''exDMS' 'LW||project'/'ix'/'nam' TO 'volume''
ENDIF
exit
LHA:
call Directory
ADDRESS COMMAND ''exlha' 'LW||project'/'ix'/'nam' 'dirname''
exit
anzdms:
ADDRESS COMMAND
''zDMS' 'LW||project'/'ix'/'nam' >'Tmp'zeigen'
''anzeiger' T:zeigen'
call weiter
anzlha:
ADDRESS COMMAND
''zlha' 'LW||project'/'ix'/'nam' >'Tmp'zeigen'
''anzeiger' 'tmp'zeigen'
call weiter
anzjpg:
ADDRESS COMMAND ''anzjpg' 'LW||project'/'ix'/'nam''
call weiter
anzgif:
ADDRESS COMMAND ''anzgif' 'LW||project'/'ix'/'nam''
call weiter
anzgui:
ADDRESS COMMAND ''anzgui' 'LW||project'/'ix'/'nam''
call weiter
Directory:
dirname = rtfilerequest(, ,"Wähle Directory für "nam"", ,,
"rtfi_flags = freqf_nofiles")
if rtresult == 0 then
CALL BREAK_C
else
IF dirname="Ram Disk:" then do;
dirname="RAM:"
END
return
Laufwerk:
volume = rtfilerequest(, , 'Entpacke 'nam' auf Laufwerk ', ,,
"rtfi_volumerequest = 0")
if rtresult == 0 then
call rtezrequest("Laufwerk nicht gefunden ;(", "oK", ,)
CALL weiter
else
return
Nix:
rtezrequest(center("Programm nicht gefunden",50)||NL||,
center("ist die richtige AmiNet CD im LW. ?",50)||NL||,
center("",50),"_Abbruch","");
exit
return
mfish:
ADDRESS 'MFISH'
STATUS DISK;disketten=RESULT;STATUS PROJECTNAME;project=RESULT;
QUERY INDEX;ix=RESULT;ix=strip(ix);QUERY DISK;DD=RESULT;QUERY NAME;nam=RESULT;
return
diraminet:
pfad=lw""project"/"ix"/"nam"";ADDRESS COMMAND 'dir 'pfad'~(#?.(readme)) >'tmp'afile'
open(file,''tmp'AFILE','R');line=readln(file);nam=line;nam=STRIP(nam)
IF nam =" " then CALL NIX;ELSE
return
BREAK_C:
Exit